var x,
  e = require("config.js").config;
try {
  x = wx.getStorageSync(e.uuidKey);
} catch (x) {}
x ||
  ((x = (function () {
    var x = Date.now();
    "undefined" != typeof performance &&
      "function" == typeof performance.now &&
      (x += performance.now());
    return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
      /[xy]/g,
      function (e) {
        var r = (x + 16 * Math.random()) % 16 | 0;
        return (
          (x = Math.floor(x / 16)), ("x" === e ? r : (3 & r) | 8).toString(16)
        );
      },
    );
  })()),
  wx.setStorage({ key: e.uuidKey, data: x })),
  (module.exports = { uuid: x });
